package com.zerone.dy.demomsg.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Document(collection = "UserInfo")
public class UserInfo {

    @Id
    private String acNo;
    private String nickName;
    private String realName;
    private String selfRemark;
    private String phone;
    private String email;

    private String headImg;

    private int sex;//0未知1男2女
    private Date createTime;

    //-1删除0正常1锁定2禁用
    private int stats;
}
